package xiao_jin.fantastic_journey.core.init;

import net.minecraft.entity.effect.StatusEffect;
import net.minecraft.registry.Registries;
import net.minecraft.registry.Registry;
import net.minecraft.registry.entry.RegistryEntry;
import net.minecraft.util.Identifier;
import xiao_jin.fantastic_journey.FantasticJourney;
import xiao_jin.fantastic_journey.core.common.effect.Osteoporosis;

public class ModEffects {

    public static RegistryEntry<StatusEffect> OSTEOPOROSIS = registerEffect(new Osteoporosis(), "osteoporosis");


    private static RegistryEntry<StatusEffect> registerEffect(StatusEffect effect, String name) {
        return Registry.registerReference(Registries.STATUS_EFFECT, Identifier.of(FantasticJourney.MOD_ID, name), effect);
    }
}
